<table cellpadding="3" cellspacing="1" class="table table-bordered table-hover" id="list-table">

    <thead>
    <tr>
        <th style="text-align: center">医院ID</th>
        <th style="text-align: center">医院编号</th>
        <th style="text-align: center">名称</th>
        <th style="text-align: center">城市</th>
        <th style="text-align: center">描述</th>
        <th style="text-align: center">状态</th>
        <th style="text-align: center">操作</th>
    </tr>
    </thead>
<#if (entityList?size>0) >
    <#list  entityList as entity>
        <tbody>
        <tr>
            <!--ID-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (entity.entityid)??>
                    ${entity.entityid}
                </#if>
            </td>
            <!--编号-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (entity.entityNo)??>
				    ${entity.entityNo}
				</#if>
            </td>

            <!--医生姓名-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (entity.entityName)??>
				    ${entity.entityName}
				</#if>
            </td>
            <!--城市-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (entity.cityName)??>
				    ${entity.cityName}
				</#if>
            </td>
            <!--描述-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (entity.entityDesc)??>
                  ${entity.entityDesc}
                </#if>
            </td>
            <!--状态-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (entity.isUsedFlag)??>
                    <#if (entity.isUsedFlag)==1>
                        启用
                    <#else>
                        未启用
                    </#if>
                <#else>
                    未启用
                </#if>
            </td>
            <!--操作-->
            <td align="center">
                <a href="${basePath}/entity/requestEditEntity.action?entityid=${entity.entityid}">编辑</a>
            </td>
        </tr>
        </tbody>
    </#list>
</#if>


</table>
<script type="text/javascript">
    listTable.action = "<%=basePath%>/common/ajaxQueryHospitalList.action";
    listTable.currentPage =${(page.currentPage)?c};
    listTable.pageCount =${(page.totalPage)?c};
    listTable.recordCount =${(page.allRow)?c};
</script>
<!--分页-->
<table id="page-table" cellspacing="0">
    <tr>
        <td align="right" nowrap="true">
            <div id="turn-page">
                共<span id="totalRecords">${page.allRow} </span>记录&nbsp;
                共<span id="totalPages">${page.totalPage}</span> 页&nbsp;
                当前第<span id="pageCurrent">${page.currentPage}</span>页&nbsp;

                每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}"
                                onkeypress="return listTable.changePageSize(event)"/>
                <!--查询动作-->
                <input type='hidden' size='3' id='action' value="ajaxQueryHospitalList.action"/>


                <span id="page-link">
                    <a href="javascript:listTable.gotoPageFirst()">第一页</a>
                    <a href="javascript:listTable.gotoPagePrev()">前一页</a>
                    <a href="javascript:listTable.gotoPageNext()">下一页</a>
                    <a href="javascript:listTable.gotoPageLast()">最后一页</a>

                </span>
            </div>
        </td>

    </tr>
</table>
